Motion.GetAxisPosition method

Gets the current position from an axis. The position can be set position or actual position.

Namespace: IntervalZero.KINGSTAR.OpcUa.Api

Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0

Syntax

C#VB
public KsReturn<double> GetAxisPosition(
       int Index,
       McSource Source
)
Public Function GetAxisPosition(
       Index As Integer,
       Source As McSource
) As KsReturn(Of Double)

Parameters

Index

Type: int

The index of an axis. Indexes are zero based. Aliases affect this parameter.

 

Source

Type: McSource

Selects a position value to read.

Return value

Type: KsReturn<double>

Returns a KsError code and a double value.

Remarks

When modulo axis is enabled, the commend, set, and actual positions in McSource will be applied with the modulo value.

Examples

C#
N/A

See also

Motion Class

IntervalZero.KINGSTAR.OpcUa.Api Namespace